package com.hdjd.dao;

import com.hdjd.entities.Admin;
import org.apache.ibatis.annotations.Param;

public interface AdminDao {
    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer adminId);

    /**
     * 根据管理员名称和密码查询管理员表信息
     * @param adminName
     * @param adminPwd
     * @return
     */
    Admin selectAdminByAdminNameAndAdminPwd(@Param("adminName") String adminName,@Param("adminPwd") String adminPwd);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
}